package com.yzy.fly.service.util;

import com.google.common.collect.Maps;
import org.apache.ibatis.mapping.StatementType;

import java.util.Map;

public class ImportClassMap {
    public static final Map<String,String> value = Maps.newHashMap();

    static{
        value.put("@Slf4j","lombok.extern.slf4j.Slf4j");
        value.put("@RestController","org.springframework.web.bind.annotation.RestController");
        value.put("@RequestMapping","org.springframework.web.bind.annotation.RequestMapping");
        value.put("@GetMapping","org.springframework.web.bind.annotation.GetMapping");
        value.put("@PostMapping","org.springframework.web.bind.annotation.PostMapping");
        value.put("@PutMapping","org.springframework.web.bind.annotation.PutMapping");
        value.put("@DeleteMapping","org.springframework.web.bind.annotation.DeleteMapping");
        value.put("@PathVariable","org.springframework.web.bind.annotation.PathVariable");
        value.put("@RequestBody","org.springframework.web.bind.annotation.RequestBody");
        value.put("@Autowired","org.springframework.beans.factory.annotation.Autowired");
        value.put("@ModelAttribute","org.springframework.web.bind.annotation.ModelAttribute");
        value.put("@RequestParam","org.springframework.web.bind.annotation.RequestParam");
        value.put("@ResponseBody","org.springframework.web.bind.annotation.ResponseBody");

        value.put("@TableId","com.baomidou.mybatisplus.annotation.TableId");
        value.put("@TableField","com.baomidou.mybatisplus.annotation.TableField");
        value.put("@TableName","com.baomidou.mybatisplus.annotation.TableName");
        value.put("@JsonFormat","com.fasterxml.jackson.annotation.JsonFormat");
        value.put("@DateTimeFormat","org.springframework.format.annotation.DateTimeFormat");

        value.put("@Data","lombok.Data");
        value.put("@Setter","lombok.Setter");
        value.put("@Getter","lombok.Getter");
        value.put("@Controller","org.springframework.stereotype.Controller");
        value.put("@Service","org.springframework.stereotype.Service");
        value.put("@Repository","org.springframework.stereotype.Repository");
        value.put("@Component","org.springframework.stereotype.Component");

        value.put("@Mapper","org.apache.ibatis.annotations.Mapper");
        value.put("@Select","org.apache.ibatis.annotations.Select");
        value.put("@Update","org.apache.ibatis.annotations.Update");
        value.put("@Insert","org.apache.ibatis.annotations.Insert");
        value.put("@Delete","org.apache.ibatis.annotations.Delete");
        value.put("@Options","org.apache.ibatis.annotations.Options");

        value.put("StatementType.CALLABLE","org.apache.ibatis.mapping.StatementType");
    }
}
